package br.com.rise.leilao.financeiro

import br.com.rise.leilao.Endereco

class Agencia {

	String numero
	Endereco endereco	
	Banco banco
	static hasMany = [contas:Conta]
	
    static constraints = {
		banco (nullable:false)
		numero (nullable:false, blank:false)
		endereco (nullable:false)
		
		}
	
	@Override
	String toString() {
		numero
	}
}
